a__filter(cons(X, Y), 0, M) → cons(0, filter(Y, M, M))
a__filter(cons(X, Y), s(N), M) → cons(mark(X), filter(Y, N, M))
a__sieve(cons(0, Y)) → cons(0, sieve(Y))
a__sieve(cons(s(N), Y)) → cons(s(mark(N)), sieve(filter(Y, N, N)))
a__nats(N) → cons(mark(N), nats(s(N)))
a__zprimes → a__sieve(a__nats(s(s(0))))
mark(filter(X1, X2, X3)) → a__filter(mark(X1), mark(X2), mark(X3))
mark(sieve(X)) → a__sieve(mark(X))
mark(nats(X)) → a__nats(mark(X))
mark(zprimes) → a__zprimes
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(s(X)) → s(mark(X))
a__filter(X1, X2, X3) → filter(X1, X2, X3)
a__sieve(X) → sieve(X)
a__nats(X) → nats(X)
a__zprimes → zprimes
↳ QTRS
↳ DependencyPairsProof
a__filter(cons(X, Y), 0, M) → cons(0, filter(Y, M, M))
a__filter(cons(X, Y), s(N), M) → cons(mark(X), filter(Y, N, M))
a__sieve(cons(0, Y)) → cons(0, sieve(Y))
a__sieve(cons(s(N), Y)) → cons(s(mark(N)), sieve(filter(Y, N, N)))
a__nats(N) → cons(mark(N), nats(s(N)))
a__zprimes → a__sieve(a__nats(s(s(0))))
mark(filter(X1, X2, X3)) → a__filter(mark(X1), mark(X2), mark(X3))
mark(sieve(X)) → a__sieve(mark(X))
mark(nats(X)) → a__nats(mark(X))
mark(zprimes) → a__zprimes
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(s(X)) → s(mark(X))
a__filter(X1, X2, X3) → filter(X1, X2, X3)
a__sieve(X) → sieve(X)
a__nats(X) → nats(X)
a__zprimes → zprimes
A__ZPRIMES → A__NATS(s(s(0)))
MARK(filter(X1, X2, X3)) → MARK(X1)
MARK(filter(X1, X2, X3)) → MARK(X3)
MARK(filter(X1, X2, X3)) → MARK(X2)
A__NATS(N) → MARK(N)
MARK(nats(X)) → A__NATS(mark(X))
MARK(filter(X1, X2, X3)) → A__FILTER(mark(X1), mark(X2), mark(X3))
MARK(s(X)) → MARK(X)
A__ZPRIMES → A__SIEVE(a__nats(s(s(0))))
MARK(sieve(X)) → A__SIEVE(mark(X))
MARK(nats(X)) → MARK(X)
MARK(zprimes) → A__ZPRIMES
A__SIEVE(cons(s(N), Y)) → MARK(N)
A__FILTER(cons(X, Y), s(N), M) → MARK(X)
MARK(cons(X1, X2)) → MARK(X1)
MARK(sieve(X)) → MARK(X)
a__filter(cons(X, Y), 0, M) → cons(0, filter(Y, M, M))
a__filter(cons(X, Y), s(N), M) → cons(mark(X), filter(Y, N, M))
a__sieve(cons(0, Y)) → cons(0, sieve(Y))
a__sieve(cons(s(N), Y)) → cons(s(mark(N)), sieve(filter(Y, N, N)))
a__nats(N) → cons(mark(N), nats(s(N)))
a__zprimes → a__sieve(a__nats(s(s(0))))
mark(filter(X1, X2, X3)) → a__filter(mark(X1), mark(X2), mark(X3))
mark(sieve(X)) → a__sieve(mark(X))
mark(nats(X)) → a__nats(mark(X))
mark(zprimes) → a__zprimes
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(s(X)) → s(mark(X))
a__filter(X1, X2, X3) → filter(X1, X2, X3)
a__sieve(X) → sieve(X)
a__nats(X) → nats(X)
a__zprimes → zprimes
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ EdgeDeletionProof
A__ZPRIMES → A__NATS(s(s(0)))
MARK(filter(X1, X2, X3)) → MARK(X1)
MARK(filter(X1, X2, X3)) → MARK(X3)
MARK(filter(X1, X2, X3)) → MARK(X2)
A__NATS(N) → MARK(N)
MARK(nats(X)) → A__NATS(mark(X))
MARK(filter(X1, X2, X3)) → A__FILTER(mark(X1), mark(X2), mark(X3))
MARK(s(X)) → MARK(X)
A__ZPRIMES → A__SIEVE(a__nats(s(s(0))))
MARK(sieve(X)) → A__SIEVE(mark(X))
MARK(nats(X)) → MARK(X)
MARK(zprimes) → A__ZPRIMES
A__SIEVE(cons(s(N), Y)) → MARK(N)
A__FILTER(cons(X, Y), s(N), M) → MARK(X)
MARK(cons(X1, X2)) → MARK(X1)
MARK(sieve(X)) → MARK(X)
a__filter(cons(X, Y), 0, M) → cons(0, filter(Y, M, M))
a__filter(cons(X, Y), s(N), M) → cons(mark(X), filter(Y, N, M))
a__sieve(cons(0, Y)) → cons(0, sieve(Y))
a__sieve(cons(s(N), Y)) → cons(s(mark(N)), sieve(filter(Y, N, N)))
a__nats(N) → cons(mark(N), nats(s(N)))
a__zprimes → a__sieve(a__nats(s(s(0))))
mark(filter(X1, X2, X3)) → a__filter(mark(X1), mark(X2), mark(X3))
mark(sieve(X)) → a__sieve(mark(X))
mark(nats(X)) → a__nats(mark(X))
mark(zprimes) → a__zprimes
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(s(X)) → s(mark(X))
a__filter(X1, X2, X3) → filter(X1, X2, X3)
a__sieve(X) → sieve(X)
a__nats(X) → nats(X)
a__zprimes → zprimes
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ EdgeDeletionProof
↳ QDP
↳ QDPOrderProof
A__ZPRIMES → A__NATS(s(s(0)))
MARK(filter(X1, X2, X3)) → MARK(X1)
MARK(filter(X1, X2, X3)) → MARK(X3)
MARK(filter(X1, X2, X3)) → MARK(X2)
A__NATS(N) → MARK(N)
MARK(nats(X)) → A__NATS(mark(X))
MARK(filter(X1, X2, X3)) → A__FILTER(mark(X1), mark(X2), mark(X3))
MARK(s(X)) → MARK(X)
A__ZPRIMES → A__SIEVE(a__nats(s(s(0))))
MARK(sieve(X)) → A__SIEVE(mark(X))
MARK(nats(X)) → MARK(X)
A__SIEVE(cons(s(N), Y)) → MARK(N)
MARK(zprimes) → A__ZPRIMES
A__FILTER(cons(X, Y), s(N), M) → MARK(X)
MARK(sieve(X)) → MARK(X)
MARK(cons(X1, X2)) → MARK(X1)
a__filter(cons(X, Y), 0, M) → cons(0, filter(Y, M, M))
a__filter(cons(X, Y), s(N), M) → cons(mark(X), filter(Y, N, M))
a__sieve(cons(0, Y)) → cons(0, sieve(Y))
a__sieve(cons(s(N), Y)) → cons(s(mark(N)), sieve(filter(Y, N, N)))
a__nats(N) → cons(mark(N), nats(s(N)))
a__zprimes → a__sieve(a__nats(s(s(0))))
mark(filter(X1, X2, X3)) → a__filter(mark(X1), mark(X2), mark(X3))
mark(sieve(X)) → a__sieve(mark(X))
mark(nats(X)) → a__nats(mark(X))
mark(zprimes) → a__zprimes
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(s(X)) → s(mark(X))
a__filter(X1, X2, X3) → filter(X1, X2, X3)
a__sieve(X) → sieve(X)
a__nats(X) → nats(X)
a__zprimes → zprimes
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MARK(filter(X1, X2, X3)) → MARK(X1)
MARK(filter(X1, X2, X3)) → MARK(X3)
MARK(filter(X1, X2, X3)) → MARK(X2)
A__FILTER(cons(X, Y), s(N), M) → MARK(X)
Used ordering: Combined order from the following AFS and order.
A__ZPRIMES → A__NATS(s(s(0)))
A__NATS(N) → MARK(N)
MARK(nats(X)) → A__NATS(mark(X))
MARK(filter(X1, X2, X3)) → A__FILTER(mark(X1), mark(X2), mark(X3))
MARK(s(X)) → MARK(X)
A__ZPRIMES → A__SIEVE(a__nats(s(s(0))))
MARK(sieve(X)) → A__SIEVE(mark(X))
MARK(nats(X)) → MARK(X)
A__SIEVE(cons(s(N), Y)) → MARK(N)
MARK(zprimes) → A__ZPRIMES
MARK(sieve(X)) → MARK(X)
MARK(cons(X1, X2)) → MARK(X1)
[AZPRIMES, 0, filter3, AFILTER3, zprimes, afilter3, azprimes]
filter3: [2,3,1]
afilter3: [2,3,1]
zprimes: multiset
AFILTER3: [2,3,1]
AZPRIMES: multiset
0: multiset
azprimes: multiset
a__filter(cons(X, Y), s(N), M) → cons(mark(X), filter(Y, N, M))
mark(0) → 0
a__zprimes → a__sieve(a__nats(s(s(0))))
mark(sieve(X)) → a__sieve(mark(X))
mark(s(X)) → s(mark(X))
a__filter(cons(X, Y), 0, M) → cons(0, filter(Y, M, M))
a__nats(N) → cons(mark(N), nats(s(N)))
mark(nats(X)) → a__nats(mark(X))
mark(filter(X1, X2, X3)) → a__filter(mark(X1), mark(X2), mark(X3))
a__filter(X1, X2, X3) → filter(X1, X2, X3)
a__zprimes → zprimes
mark(zprimes) → a__zprimes
a__sieve(cons(s(N), Y)) → cons(s(mark(N)), sieve(filter(Y, N, N)))
a__sieve(cons(0, Y)) → cons(0, sieve(Y))
a__sieve(X) → sieve(X)
a__nats(X) → nats(X)
mark(cons(X1, X2)) → cons(mark(X1), X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ EdgeDeletionProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
A__ZPRIMES → A__NATS(s(s(0)))
MARK(filter(X1, X2, X3)) → A__FILTER(mark(X1), mark(X2), mark(X3))
MARK(s(X)) → MARK(X)
A__ZPRIMES → A__SIEVE(a__nats(s(s(0))))
MARK(sieve(X)) → A__SIEVE(mark(X))
MARK(nats(X)) → MARK(X)
MARK(zprimes) → A__ZPRIMES
A__SIEVE(cons(s(N), Y)) → MARK(N)
A__NATS(N) → MARK(N)
MARK(nats(X)) → A__NATS(mark(X))
MARK(cons(X1, X2)) → MARK(X1)
MARK(sieve(X)) → MARK(X)
a__filter(cons(X, Y), 0, M) → cons(0, filter(Y, M, M))
a__filter(cons(X, Y), s(N), M) → cons(mark(X), filter(Y, N, M))
a__sieve(cons(0, Y)) → cons(0, sieve(Y))
a__sieve(cons(s(N), Y)) → cons(s(mark(N)), sieve(filter(Y, N, N)))
a__nats(N) → cons(mark(N), nats(s(N)))
a__zprimes → a__sieve(a__nats(s(s(0))))
mark(filter(X1, X2, X3)) → a__filter(mark(X1), mark(X2), mark(X3))
mark(sieve(X)) → a__sieve(mark(X))
mark(nats(X)) → a__nats(mark(X))
mark(zprimes) → a__zprimes
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(s(X)) → s(mark(X))
a__filter(X1, X2, X3) → filter(X1, X2, X3)
a__sieve(X) → sieve(X)
a__nats(X) → nats(X)
a__zprimes → zprimes
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ EdgeDeletionProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
A__ZPRIMES → A__NATS(s(s(0)))
MARK(s(X)) → MARK(X)
A__ZPRIMES → A__SIEVE(a__nats(s(s(0))))
MARK(sieve(X)) → A__SIEVE(mark(X))
MARK(nats(X)) → MARK(X)
MARK(zprimes) → A__ZPRIMES
A__SIEVE(cons(s(N), Y)) → MARK(N)
A__NATS(N) → MARK(N)
MARK(nats(X)) → A__NATS(mark(X))
MARK(cons(X1, X2)) → MARK(X1)
MARK(sieve(X)) → MARK(X)
a__filter(cons(X, Y), 0, M) → cons(0, filter(Y, M, M))
a__filter(cons(X, Y), s(N), M) → cons(mark(X), filter(Y, N, M))
a__sieve(cons(0, Y)) → cons(0, sieve(Y))
a__sieve(cons(s(N), Y)) → cons(s(mark(N)), sieve(filter(Y, N, N)))
a__nats(N) → cons(mark(N), nats(s(N)))
a__zprimes → a__sieve(a__nats(s(s(0))))
mark(filter(X1, X2, X3)) → a__filter(mark(X1), mark(X2), mark(X3))
mark(sieve(X)) → a__sieve(mark(X))
mark(nats(X)) → a__nats(mark(X))
mark(zprimes) → a__zprimes
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(s(X)) → s(mark(X))
a__filter(X1, X2, X3) → filter(X1, X2, X3)
a__sieve(X) → sieve(X)
a__nats(X) → nats(X)
a__zprimes → zprimes
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
A__ZPRIMES → A__NATS(s(s(0)))
A__ZPRIMES → A__SIEVE(a__nats(s(s(0))))
MARK(sieve(X)) → A__SIEVE(mark(X))
MARK(nats(X)) → MARK(X)
MARK(nats(X)) → A__NATS(mark(X))
MARK(sieve(X)) → MARK(X)
Used ordering: Combined order from the following AFS and order.
MARK(s(X)) → MARK(X)
MARK(zprimes) → A__ZPRIMES
A__SIEVE(cons(s(N), Y)) → MARK(N)
A__NATS(N) → MARK(N)
MARK(cons(X1, X2)) → MARK(X1)
[AZPRIMES, zprimes, azprimes] > [anats1, nats1]
[AZPRIMES, zprimes, azprimes] > [sieve1, asieve1] > 0
[afilter2, filter2] > 0
sieve1: [1]
filter2: [1,2]
zprimes: multiset
AZPRIMES: multiset
0: multiset
afilter2: [1,2]
nats1: [1]
asieve1: [1]
anats1: [1]
azprimes: multiset
a__filter(cons(X, Y), s(N), M) → cons(mark(X), filter(Y, N, M))
mark(0) → 0
a__zprimes → a__sieve(a__nats(s(s(0))))
mark(sieve(X)) → a__sieve(mark(X))
mark(s(X)) → s(mark(X))
a__filter(cons(X, Y), 0, M) → cons(0, filter(Y, M, M))
a__nats(N) → cons(mark(N), nats(s(N)))
mark(nats(X)) → a__nats(mark(X))
mark(filter(X1, X2, X3)) → a__filter(mark(X1), mark(X2), mark(X3))
a__filter(X1, X2, X3) → filter(X1, X2, X3)
a__zprimes → zprimes
mark(zprimes) → a__zprimes
a__sieve(cons(s(N), Y)) → cons(s(mark(N)), sieve(filter(Y, N, N)))
a__sieve(cons(0, Y)) → cons(0, sieve(Y))
a__sieve(X) → sieve(X)
a__nats(X) → nats(X)
mark(cons(X1, X2)) → cons(mark(X1), X2)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ EdgeDeletionProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
MARK(s(X)) → MARK(X)
A__NATS(N) → MARK(N)
A__SIEVE(cons(s(N), Y)) → MARK(N)
MARK(zprimes) → A__ZPRIMES
MARK(cons(X1, X2)) → MARK(X1)
a__filter(cons(X, Y), 0, M) → cons(0, filter(Y, M, M))
a__filter(cons(X, Y), s(N), M) → cons(mark(X), filter(Y, N, M))
a__sieve(cons(0, Y)) → cons(0, sieve(Y))
a__sieve(cons(s(N), Y)) → cons(s(mark(N)), sieve(filter(Y, N, N)))
a__nats(N) → cons(mark(N), nats(s(N)))
a__zprimes → a__sieve(a__nats(s(s(0))))
mark(filter(X1, X2, X3)) → a__filter(mark(X1), mark(X2), mark(X3))
mark(sieve(X)) → a__sieve(mark(X))
mark(nats(X)) → a__nats(mark(X))
mark(zprimes) → a__zprimes
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(s(X)) → s(mark(X))
a__filter(X1, X2, X3) → filter(X1, X2, X3)
a__sieve(X) → sieve(X)
a__nats(X) → nats(X)
a__zprimes → zprimes
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ EdgeDeletionProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
MARK(s(X)) → MARK(X)
MARK(cons(X1, X2)) → MARK(X1)
a__filter(cons(X, Y), 0, M) → cons(0, filter(Y, M, M))
a__filter(cons(X, Y), s(N), M) → cons(mark(X), filter(Y, N, M))
a__sieve(cons(0, Y)) → cons(0, sieve(Y))
a__sieve(cons(s(N), Y)) → cons(s(mark(N)), sieve(filter(Y, N, N)))
a__nats(N) → cons(mark(N), nats(s(N)))
a__zprimes → a__sieve(a__nats(s(s(0))))
mark(filter(X1, X2, X3)) → a__filter(mark(X1), mark(X2), mark(X3))
mark(sieve(X)) → a__sieve(mark(X))
mark(nats(X)) → a__nats(mark(X))
mark(zprimes) → a__zprimes
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(s(X)) → s(mark(X))
a__filter(X1, X2, X3) → filter(X1, X2, X3)
a__sieve(X) → sieve(X)
a__nats(X) → nats(X)
a__zprimes → zprimes
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MARK(s(X)) → MARK(X)
MARK(cons(X1, X2)) → MARK(X1)
cons2 > [MARK1, s1]
MARK1: [1]
s1: [1]
cons2: [2,1]
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ EdgeDeletionProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ PisEmptyProof
a__filter(cons(X, Y), 0, M) → cons(0, filter(Y, M, M))
a__filter(cons(X, Y), s(N), M) → cons(mark(X), filter(Y, N, M))
a__sieve(cons(0, Y)) → cons(0, sieve(Y))
a__sieve(cons(s(N), Y)) → cons(s(mark(N)), sieve(filter(Y, N, N)))
a__nats(N) → cons(mark(N), nats(s(N)))
a__zprimes → a__sieve(a__nats(s(s(0))))
mark(filter(X1, X2, X3)) → a__filter(mark(X1), mark(X2), mark(X3))
mark(sieve(X)) → a__sieve(mark(X))
mark(nats(X)) → a__nats(mark(X))
mark(zprimes) → a__zprimes
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(0) → 0
mark(s(X)) → s(mark(X))
a__filter(X1, X2, X3) → filter(X1, X2, X3)
a__sieve(X) → sieve(X)
a__nats(X) → nats(X)
a__zprimes → zprimes